#pragma once
#include "stdafx.h"

class McuCmd
{
public:
	static string GetVersion();
	static int  GetAccState();
	static bool PowerCtrl(int val);
	static int  GetPowerVoltage();
	static int  GetCanCount();
	static int  GetCanSpeed(int channel);
	static bool SetCanSpeed(int channel, int value);
	static bool CanWrite(int channel, int id, const unsigned char* pData, int length);
	static bool CanFilterCtrl(int channel, int type);
	static bool CanHwFilterAdd(int channel, uint32_t id, uint32_t mask);
	static bool CanHwFilterClear(int channel);
	static bool CanSwFilterAdd(int channel, uint32_t id, uint32_t mask);
	static bool CanSwFilterClear(int channel);
	static int  GetBlockCount();
	static bool BlockWrite(int index, const unsigned char* pData, int length);
	static bool BlockRead(int index, unsigned char* pBuf, int length);
	static int  GetInputCount();
	static int  InputGet(int index);
	static int  GetOutputCount();
	static int  OutputGet(int index);
	static bool OutputSet(int index, int value);
    static bool boolean CanRtc(unsigned char[] pData);
};
